sync diff
Cosense とローカルファイルの差分を表示します。
書式
cos sync diff [<title>] [--all] [--dir <path>] --project <name>
フラグ
[<title>] — 対象ページタイトル (--all と排他)
--all — プロジェクト内の全ページを対象
--dir <path> — ローカルディレクトリ (デフォルト: カレントディレクトリ)
--plain — GNU unified diff 風の出力
使用例
code:bash
# 単一ページの差分を確認
cos sync diff "ページタイトル" --dir ./sync --project myproject
# 全ページの差分を確認
cos sync diff --all --dir ./sync --project myproject
# unified diff 形式
cos sync diff "ページタイトル" --dir ./sync --project myproject --plain
関連ページ